<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

// 前台
Route::get('api/get/hot/note', 'index/hotNote');
Route::get('api/get/banner/all', 'index/bannerList');
Route::get('api/get/all/note', 'index/getAllNote');
Route::get('api/note/find/:id', 'index/findById');
Route::get('api/get/note/rand/list', 'index/getRandNote');



// admin
Route::post('admin/user/center/login', 'userCenter/login');
Route::post('admin/user/center/register', 'userCenter/register');
Route::post('admin/banner/get/all', 'bannerController/getBannerAll');
Route::post('admin/banner/add', 'bannerController/insert');
Route::post('admin/banner/find/:id', 'bannerController/findById');
Route::delete('admin/banner/delete/:id', 'bannerController/deleteData');
Route::post('admin/banner/update', 'bannerController/update');
Route::post('admin/tool/update', 'toolController/updateImage');
Route::post('admin/note/get/all', 'noteController/getNoteAll');
Route::post('admin/note/add', 'noteController/insert');
Route::post('admin/note/find/:id', 'noteController/findById');
Route::post('admin/note/update', 'noteController/update');
Route::delete('admin/note/delete/:id', 'noteController/deleteData');
